home *** CD-ROM | disk | FTP | other *** search
/ Internet Surfer 2.0 / Internet Surfer 2.0 (Wayzata Technology) (1996).iso / pc / text / mac / faqs.065 < prev    next >
Encoding:
Text File  |  1996-02-12  |  27.6 KB  |  865 lines

  1. Frequently Asked Questions (FAQS);faqs.065
  2.  
  3.  
  4.  
  5.   Or, you can send a note to mail-server@nluug.nl with a body containing the
  6.   following:
  7.  
  8.     send mail/mh/papers-ps/tutorial.ps.Z
  9.  
  10.   [9.92]
  11.  
  12.  
  13. Subject: How should I report bugs?
  14. From: Intro-6
  15.  
  16.   Mail them to Bug-MH@ics.uci.edu and be sure to include the output of
  17.   the -help option as well as what hardware and operating system you
  18.   are using.
  19.  
  20.  
  21. Subject: How can I convert from my mailer to MH?
  22. From: Intro-7
  23.  
  24.   If you use one of a mail agent like 'mail', 'mailx', 'elm' or
  25.   'mush', converting to MH is easy.  When you run the 'inc' command,
  26.   it reads all new messages from the system mailbox into your 'inbox'
  27.   folder.  Those mail agents also have separate files or "folders"
  28.   that hold messages in the same format as the system mailbox.  You
  29.   can read them with the 'inc -file' command.  For example, to read
  30.   the messages from your 'mbox' mail file into your MH 'inbox' folder,
  31.   you'd type:
  32.  
  33.     % cd
  34.     % cp mbox mbox.backup
  35.     % inc -file mbox
  36.  
  37.   If you see the usual "Incorporating new mail into inbox..." message
  38.   and a scan listing, the messages probably were converted.  Read some
  39.   or all of them (with the 'show' command) and be sure.  The 'inc'
  40.   won't remove your mbox unless you use '-truncate'.
  41.  
  42.   Section D.4 (C.4) of the MH book lists two scripts to convert mail
  43.   files to MH folders: babyl2mh to convert from rmail's babyl format;
  44.   vmsmail2mh to convert from VMS's mail (see "What references exist
  45.   for MH" to see where the book's examples can be ftped from).
  46.   --Jerry Peek <jerry@ora.com>
  47.  
  48.   Vivek Khera <khera@cs.duke.edu> rewrote this in Perl since the
  49.   original script doesn't work for some people.
  50.  
  51.   #!/usr/gnu/bin/perl
  52.   # incorporate an RMAIL babyl file into an MH folder
  53.   #
  54.   # usage: babyl2mh +folder babyl-file
  55.   #
  56.   # V. Khera <khera@cs.duke.edu> 17-JUL-1991
  57.  
  58.   # where to find rcvstore
  59.   $rcvstore = "/usr/local/lib/mh/rcvstore";
  60.  
  61.   #
  62.   # pull out command line args
  63.   #
  64.   die "usage: babyl2mh +folder babyl-file\n" unless @ARGV == 2;
  65.  
  66.   $folder = shift;
  67.   # make sure folder name starts with a "+"
  68.   (substr($folder,0,1) eq "+") || (substr($folder,0,0) = "+");
  69.   $bfname = shift;
  70.  
  71.   print "Incorporating RMAIL file $bfname into MH folder $folder\n";
  72.  
  73.   #
  74.   # read in babyl file.
  75.   #
  76.   $/ = "\037";    # this separates the records in a babyl file
  77.   $* = 1;        # records are multi-lines
  78.  
  79.   open(BABYL,$bfname) || die "Couldn't open $bfname\n";
  80.  
  81.   $_ = <BABYL>;    # discard header.
  82.  
  83.   $msgnum = 0;
  84.  
  85.   while (<BABYL>) {
  86.     chop;        # get rid of delimeter
  87.     s/\f(.|\n)*\*\*\* EOOH \*\*\*\n//;    # remove duplicate header information
  88.     open(RCVSTORE,"|" . $rcvstore . " $folder");
  89.     print RCVSTORE $_;
  90.     $msgnum++;
  91.     print "Message $msgnum done.\n";
  92.   }
  93.  
  94.   Juergen Nickelsen <nickel@cs.tu-berlin.de> provides yet another
  95.   short script.  He says,
  96.  
  97.   "You can remove the second to last second line ("> $input"), so
  98.   that the script doesn't zero out your RMAIL file.
  99.  
  100.   "Another alternative is to replace this line with "inc -file $tmpmbox
  101.   $folder && > $input", so that the RMAIL is only zeroed if inc
  102.   successfully incorporated the mail.  Finally one could add a switch
  103.   -z, so that the RMAIL file is only zeroed if the switch is given.
  104.  
  105.   #!/bin/sh
  106.   # Usage: inco [from [folder]]
  107.   # "from" defaults to $HOME/Mail/outbound, "folder" to +inbox.
  108.  
  109.   lispfile=/tmp/inco.$$.el
  110.   input=${1-$HOME/Mail/outbound}
  111.   tmpmbox=/tmp/inc.$$.mbox
  112.   folder=${2-+inbox}
  113.  
  114.   if [ $# -ge 3 ]; then
  115.       echo Usage: `basename $0` [ from [ folder ]]
  116.       exit 2
  117.   fi
  118.  
  119.   trap "rm -f $lispfile $tmpmbox ; exit 1" 1 2 15
  120.  
  121.   touch $tmpmbox
  122.   chmod 600 $tmpmbox
  123.  
  124.   echo '(rmail-input "'$input'")
  125.   (rmail-last-message)
  126.   (setq last (rmail-what-message))
  127.   (rmail-show-message 1)
  128.   (while (not (equal (rmail-what-message) last))
  129.     (rmail-output "'$tmpmbox'")
  130.     (rmail-delete-forward nil))
  131.   (rmail-output "'$tmpmbox'")
  132.   (kill-buffer (current-buffer))
  133.   ' > $lispfile
  134.  
  135.   emacs -batch -l $lispfile
  136.   inc -file $tmpmbox $folder
  137.  
  138.   > $input
  139.   rm -f $lispfile $tmpmbox
  140.  
  141.   Use the following to convert a Babyl format file to Unix mail format.
  142.   --Barry A. Warsaw <warsaw@nlm.nih.gov>.
  143.   durer.cme.nist.gov    [129.6.32.4]    pub/gnu/rmailtovm.el
  144.  
  145.   See also MH book appendix D (appendix C).
  146.  
  147.  
  148. Subject: What machines does MH run on?
  149. From: Building MH-10
  150.  
  151.   If you have a computer running UNIX, you can probably run MH.
  152.   --Jerry Peek <jerry@ora.com>
  153.  
  154.  
  155. Subject: ! How do I build MH?
  156. From: Building MH-11
  157.  
  158.   By carefully reading the READ-ME in the root of the source
  159.   hierarchy, one should not have any trouble building MH.
  160.  
  161.   If building MH on IBM's AIX, obtain a set of patches and
  162.   configuration file from Bill Wohler <wohler@sap-ag.de>.  Version
  163.   6.8 of MH, available soon, will compile on AIX out of
  164.   the box. [12.92]
  165.  
  166.  
  167. Subject: ! What options should I use?
  168. From: Building MH-12
  169.  
  170.   BERK: Do NOT include the BERK option (in versions 6.7 or later)!
  171.   BERK breaks the mh-format functions that take apart address lines,
  172.   for example mbox, from, and friendly.  This would really put a crimp
  173.   on my replcomps file.
  174.  
  175.   LOCKF: if you have NFS, you need to lock your mailbox with lockf()
  176.   so the lock will be honored by all machines on the local network.
  177.   If you have the lockf() system call, include LOCKF.
  178.  
  179.   JQ Johnson <jqj@duff.uoregon.edu> makes the point that one should
  180.   use this option carefully since it requires a roboust lockf() call.
  181.   For example, this option caused serious problems on his SunOS 4.1.1.
  182.   He suggested using LOK_BELL instead, and adding "lockstyle: 1" to
  183.   mtstailor.
  184.  
  185.   ATZ: makes your timezones print like "EST" instead of "-0500".  Much
  186.   prettier.
  187.  
  188.   --Stephen Gildea <gildea@expo.lcs.mit.edu>
  189.  
  190.   However, Tony Landells <ahl@technix.oz.au> replies: "Yes; very
  191.   pretty.  How unfortunate that timezone names are so ambiguous, so
  192.   that EST can be interpreted, at a minimum, as (American) Eastern
  193.   Standard Time, (Australian) Eastern Standard Time, or (Australian)
  194.   Eastern Summer Time (and yes, I think it's dumb having the same
  195.   acronym for both normal and Summer time, but that's a different
  196.   problem).  While the numeric timezones may not look as nice, they
  197.   are, at least, reasonably unambiguous.  I would urge anyone who ever
  198.   intends/hopes/expects to use e-mail outside the U.S. to NOT use ATZ
  199.   (sorry Stephen)."
  200.  
  201.   At any rate, the conf/examples directory has been updated and
  202.   contains many examples show you which options are required on your
  203.   platform and which are optional (in the upcoming version MH 6.8).  At
  204.   any rate, it is recommended that you examine the options in the
  205.   example configuration files, and read about them in READ-ME.
  206.  
  207.   RPATHS: a side-effect is that slocal writes messages to your system
  208.   maildrop without the MMDF C-A's that separate messages, so your BSD
  209.   tools like from work. [12.92]
  210.  
  211.  
  212. Subject: Fixing "post: problem initializing server; [BHST] no servers available"
  213. From: Building MH-13
  214.  
  215.   The error message itself is essentially correct.  However, what this
  216.   really means is: MH's post cannot connect to a running sendmail over
  217.   an SMTP port (MH configured with SMTP and SENDMTS).
  218.  
  219.   The potential problems:
  220.  
  221.   1. Your local sendmail daemon is dying or not running for some
  222.   reason.
  223.  
  224.   2. You use BIND and your local nameserver is not responding.
  225.  
  226.   3. Your mtstailor has its "servers:" pointing to a non-existant
  227.   machine or a machine which is a) not reachable or b) not running the
  228.   sendmail daemon.  --Peter Marvit <marvit@hplabs.hpl.hp.com>
  229.  
  230.  
  231. Subject: Where can I get POP3?
  232. From: Building MH-14
  233.  
  234.   MH6.7 (and earlier versions too) include a server for version 3 of POP.
  235.  
  236.  
  237. Subject: ! What do I do if scan shows the wrong date?
  238. From: Building MH-15
  239.  
  240.   Try adding the following lines to "lexedit.sed" in the zotnet
  241.   subdirectory:
  242.  
  243.   /^# define YYTYPE unsigned short/c\
  244.   # define YYTYPE int
  245.   /^unsigned char yymatch\[\] = {/c\
  246.   char yymatch[] = {
  247.   /^unsigned char yyextra\[\] = {/c\
  248.   char yyextra[] = {
  249.  
  250.   On some systems, YYTYPE is actually just a short and so the first
  251.   expression should be modified accordingly.  --Todd Kaehler
  252.   <kaehler@decvax.dec.com>
  253.  
  254.   This patch will be included in the upcoming MH 6.8 version. [12.92]
  255.  
  256.  
  257. Subject: Why slocal writes messages to system maildrop that from(1) can't read.
  258. From: Building MH-16
  259.  
  260.   Around line 500 or so of uip/slocal.c, change the #ifndef RPATHS to #ifdef
  261.   RPATHS.  With this fix, which only works if you use RPATHS, the ^A's will
  262.   disappear.  --Doug Acker <acker@wg2.waii.com>
  263.  
  264.   This is fixed in the upcoming version MH 6.8. [12.92]
  265.  
  266.  
  267. Subject: Why does repl add a "Re:" to a message that already has one?
  268. From: Building MH-17
  269.  
  270.   I carefully reconfigured and rebuilt MH from scratch and the problem
  271.   went away.  --Larry McVoy <lm@slovax.Eng.Sun.COM>
  272.  
  273.  
  274. Subject: Does MH support IMAP2 (RFC 1064)?
  275. From: Building MH-18
  276.  
  277.   No.  MH only supports retrieving mail using POP3.  POP3 is on the
  278.   "standards track"--it is now an elective Internet Draft Standard
  279.   (see RFC1280 for more details).  At this point, IMAP[23] are
  280.   "experimental, limited use" protocols; it is unlikely that MH will
  281.   support them.  --John Romine <jromine@ics.uci.edu>
  282.  
  283.  
  284. Subject: Where can I read about slocal and the format of the .maildelivery file?
  285. From: Using MH-20
  286.  
  287.   In the distribution, this information is provided in the mhook man
  288.   page. Wasn't this obvious?
  289.  
  290.   One can actually specify slocal or .maildelivery with IBM's AIX man.
  291.  
  292.   Here is brief example of a .maildelivery file that stores messages
  293.   to babble in a folder and the system mailbox, stores mh-users in a
  294.   folder but not the system mailbox, and puts the rest in the system
  295.   mailbox.
  296.  
  297.     to  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  298.     cc  mh-users  | A "/usr/local/lib/mh/rcvstore -create +lists/mh-users"
  299.     to  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  300.     cc  babble    | R "/usr/local/lib/mh/rcvstore -create +lists/babble"
  301.     default -     > ? /usr/spool/mail/wohler
  302.  
  303.   In addition, the following may be used to automatically send
  304.   replies while on vacation.  See vacation(1) to see how to set up
  305.   vacation itself.  The sed script removes the ">" that slocal added
  306.   so that vacation knows where to send the reply.
  307.  
  308.     to  wohler   | R "sed -e '1s/>From /From /' | /usr/ucb/vacation wohler"
  309.     cc  wohler   | R "sed -e '1s/>From /From /' | /usr/ucb/vacation wohler"
  310.  
  311.   Your .forward file may look like (quotes necessary):
  312.  
  313.     "| /usr/local/lib/mh/slocal -user your_login"
  314.  
  315.   In some implentations, the "-user your_login" is not needed.  If
  316.   not, manually running slocal with the flag will produce an error.
  317.  
  318.   See also MH book chapter 11.
  319.  
  320.   Alternatives to slocal include deliver, procmail, and mailagent.
  321.   Archie can help you find where they are kept.
  322.  
  323.  
  324. Subject: How do I include messages in repl with or without ">"?
  325. From: Using MH-21
  326.  
  327.   When making a reply, specify a filter file on the command line:
  328.  
  329.     repl -filter repl.format
  330.  
  331.   This filter file must be in your MH mail directory (usually "Mail",
  332.   in your home directory).  Here are a couple of example repl.format
  333.   files:
  334.  
  335.     overflowtext="",overflowoffset=0
  336.     message-id:nocomponent,formatfield=\
  337.     "In message %{text}you write:"
  338.     body:component=">",overflowtext=">",overflowoffset=0
  339.  
  340.           or
  341.  
  342.     overflowtext="",overflowoffset=0
  343.     date:component="Your message dated",formatfield=\
  344.     "%<(nodate{text})%{text}%|%(pretty{text})%>"
  345.     body:component=">",overflowtext=">",overflowoffset=0
  346.  
  347.   Setting overflowoffset to 0 keeps MH from doing anything to
  348.   extra-long lines in the headers.  In the body, however, this
  349.   behavior is overridden so that long lines are automatically broken
  350.   and a ">" is inserted before every line.  You could put almost
  351.   whatever you want between those quotes, although the "standard" ">"
  352.   makes it easier to read notes that have been included several times.
  353.   The examples differ with the descriptive text that is inserted
  354.   before the included body.
  355.  
  356.   It is suggested not to use the "prompter" editor in this case, since
  357.   it is likely that you'll not want to use all of the included
  358.   message.  Indeed, it is proper etiquette to edit out all unnecessary
  359.   include verbiage so readers don't have to wade through the morass to
  360.   read your pearls of wisdom.
  361.  
  362.   Also note that this might not work in versions prior to 6.7.
  363.  
  364.   --Alan Thew <qq11@liv.ac.uk>, Mike Schwager <schwager@cs.uiuc.edu>,
  365.   James T Perkins <jamesp@metolius.wr.tek.com>
  366.  
  367.   See also MH book sections 6.7.4, 6.7.5, 9.4.1 (9.3.1).
  368.  
  369.  
  370. Subject: How can I eliminate duplicate copies of letters to myself?
  371. From: Using MH-22
  372.  
  373.   Add these two lines to your MH profile file:
  374.  
  375.     Alternate-Mailboxes: user@host1, user@host2, ...
  376.         repl: -nocc me
  377.  
  378.   To get one copy, you can either:
  379.  
  380.   - Take out the "-nocc me"... then you'll get exactly one copy of
  381.     your replies (assuming all your addresses are listed in
  382.     Alternate-Mailboxes), or
  383.  
  384.   - Add an "Fcc: foldername" to the headers of messages you send.
  385.     That will drop a copy of the message in the folder "foldername".
  386.     You can do this for *all* MH messages you send (not just with
  387.     repl) by putting an "Fcc:" entry in your personal copy of the
  388.     files "components", "replcomps", and "forwcomps" in your MH
  389.     directory.  (If you make a "distcomps" file, it needs
  390.     "Resent-Fcc:".)  For more info, see the man pages comp(1),
  391.     repl(1), forw(1), dist(1) and mh-mail(5). --Jerry Peek <jerry@ora.com>
  392.  
  393.   The Alternate-Mailboxes also tells scan which messages are really
  394.   from you so that it can place the recipient in the scan line instead
  395.   of the sender.  --Bill Wohler
  396.  
  397.   See also MH book sections 6.7.2, 8.6.
  398.  
  399.   This is also a convenient way to AVOID automatically cc-ing a
  400.   mailing list when replying to a person who sent the message to the
  401.   mailing-list, by listing the name of that mailing list in your
  402.   alternate mailboxes.  --Alec Wolman <wolman@crl.dec.com>
  403.  
  404.  
  405. Subject: How would one go about reading Usenet with MH?
  406. From: Using MH-23
  407.  
  408.   Although news readers are better, if one really wants to use
  409.   MH, bbc will do the job.  For example, "bbc comp.mail.mh" reads this
  410.   newsgroup.  To enable bbc, you have to specify "bboards" when you
  411.   build MH.  --Stephen Gildea <gildea@expo.lcs.mit.edu>
  412.  
  413.   You can save articles in the news readers for later perusal with MH.
  414.  
  415.   First, create a symbolic link from your mail directory (ie. usenet) to
  416.   your news directory (ie. "ln -s ~/News ~/Mail/usenet").  You can then
  417.   treat your news directory as a mail folder.  Thus, to select a news
  418.   group, use "folder +usenet/comp/mail/mh".
  419.  
  420.   To set the default save location correctly in rn, use:
  421.  
  422.     rn -M -/
  423.  
  424.   or in your nn presentation sequence:
  425.  
  426.     news.announce.        +$F/$N
  427.     comp.mail.mh        +
  428.     .
  429.     .
  430.  
  431.   See also MH book section 8.7.
  432.  
  433.  
  434. Subject: Can I append MH messages (ie. +inbox/1) to a UNIX mailbox format file?
  435. From: Using MH-24
  436.  
  437.   #! /bin/sh
  438.   # packmbox - pack an MH folder back into a UUCP-style mbox
  439.   #
  440.   # Defaults:
  441.   #    `+folder'    defaults to current folder
  442.   #    `msgs'     defaults to all
  443.   #
  444.   # Context:
  445.   #    Current-Folder
  446.   #
  447.   # for simplicity (and speed) we don't parse command-line args (much)
  448.   case $#/$1 in
  449.      1/-h*) echo "syntax: packmbox [+folder] [msgs] [-help]" 1>&2; exit 0;;
  450.   esac
  451.  
  452.   format="%(msg) From \
  453.   %<{return-path}%(putstr)%|\
  454.   %<(nonnull(mbox{from}))%(putstr)%|nobody%>@\
  455.   %<(nonnull(host{from}))%(putstr)%|nowhere%>%> \
  456.   %(day{date}) %(month{date}) %2(mday{date}) \
  457.   %02(hour{date}):%02(min{date}):%02(sec{date}) \
  458.   %(void(year{date}))%<(gt 100)%4(putnum)%|19%02(putnum)%>"
  459.  
  460.   trap 'rm -f /tmp/packm$$; exit 1' 1 2 3 15
  461.  
  462.   scan -noclear -noheader -noreverse -width 256 \
  463.               -format "${format}" $* >/tmp/packm$$
  464.   # tricky -- you must do this "cd" after scan has updated the context
  465.   cd `mhpath`
  466.  
  467.   exec </tmp/packm$$
  468.   rm -f /tmp/packm$$
  469.   while read m f
  470.   do
  471.       echo "$f"
  472.       sed -e '/^From /s/^/>/' < $m
  473.       echo ""
  474.   done
  475.   exit
  476.  
  477.  
  478. Subject: ! How can I include my signature?
  479. From: Using MH-25
  480.  
  481.   There are several ways.
  482.  
  483.   1) The MH way.
  484.  
  485.   1a) In your Mail directory, create files that
  486.       include your signature into the format of the message.
  487.  
  488.      ~/Mail/components:
  489.     To:
  490.     cc:
  491.     Subject:
  492.     --------
  493.  
  494.     --
  495.     Eric Ziegast        ziegast@uunet.uu.net
  496.     UUNET Technologies    uunet!ziegast
  497.  
  498.      ~/Mail/replcomps
  499.     body:component="> ",compwidth=2
  500.     :--
  501.     :Eric Ziegast          ziegast@uunet.uu.net
  502.     :UUNET Technologies    uunet!ziegast
  503.  
  504.      To use the replcomps file, add the following to your ~/.mh_profile:
  505.  
  506.     repl: -filter replfmt
  507.  
  508.      When comp is used, your signature is already there along with my
  509.      headers.  When repl is used, the mhl program takes the body of
  510.      the letter you're replying to, prepends '> ' to each line and
  511.      then adds your signature at the end (available after version 6.7).
  512.  
  513.   1b) Create an "editor" which can be called from whatnow to add the
  514.      signature when desired or create a frontend to post (use the
  515.      .mh_profile line "postproc: postproc" to call it) that always
  516.      appends the .signature file before calling post to mail the
  517.      message.  David J. Fiander <david@golem.uucp>, David A.
  518.      Truesdell <truesdel@sun418.nas.nasa.gov> and Tom Wilmore
  519.      <sastjw@unx.sas.com> have sample scripts to do these.
  520.  
  521.   1c) See page 198 in the MH book.
  522.  
  523.   2) Using your editor.  If you use vi, you can use something like:
  524.  
  525.       map S :r ~/.signature
  526.  
  527.      to load your signature out of .signature every time you
  528.      hit 'S'.
  529.  
  530.   3) Use your windowing system.  xterm, for example, can provide key
  531.      and button mappings for the utterly lazy.
  532.  
  533.   4) And if you use Emacs with mh-e, C-c C-s will append the signature.
  534.  
  535.   --Eric W. Ziegast <ziegast@uunet.uu.net> & Hardy Mayer
  536.   <hardy@golem.ps.uci.edu>
  537.  
  538.   Tired of the same old signature?  Want different signatures for
  539.   different newsgroups?  Here's a program to help you out.
  540.  
  541.   The way it works is to have .signature be a named pipe, so if you
  542.   don't have named pipes, just say 'n'.
  543.  
  544.   The sigrand program then feeds stuff down the pipe everytime someone
  545.   wants to read it.  That way it works for more than just news, but
  546.   for anything that wants to read your .signature, like a mailer.
  547.  
  548.   You have your choice of three kinds of signatures:
  549.  
  550.       1) random (short) fortune from "fortune -s"; you get these if
  551.      you don't have a global sig file.
  552.       2) random fortune from ~/News/SIGNATURES [global sig file]
  553.       3) random fortune form ~/News/(newsgroup)/SIGNATURES [local sig files]
  554.  
  555.   Ask Tom Christiansen <tchrist@convex.com> for more details.
  556.  
  557.   Section 13.13 of the MH book lists mysend, a sendproc script to
  558.   process a message after "What now? send" (see "What references exist
  559.   for MH" to see where the book's examples can be ftped from).
  560.   --Jerry Peek <jerry@ora.com> [9.92]
  561.  
  562.   See also MH book sections 8.9.6, 13.2 (12.2).
  563.  
  564.  
  565. Subject: What to do with "Problems with edit - draft removed" messages.
  566. From: Using MH-26
  567.  
  568.   If your users are using an AT&T version of "vi", it's exiting with
  569.   non-zero status (supposedly a count of the "errors" during the edit).
  570.   Move "vi" to "broken_vi" and put it its place:
  571.  
  572.     #! /bin/sh
  573.     /usr/ucb/broken_vi $*
  574.     exit 0
  575.  
  576.   Then complain to your vendor that "vi" is broken, and they should
  577.   fix it.  --John Romine <jromine@ics.uci.edu>
  578.  
  579.  
  580. Subject: How do I call my editor with arguments?
  581. From: Using MH-27
  582.  
  583.   Set your editor (in .mh_profile) to the following shellscript:
  584.  
  585.     #/bin/sh
  586.     <youreditor> <yourargs> $*
  587.     exit 0
  588.  
  589.   --John Romine <jromine@ics.uci.edu>
  590.  
  591.   You might find it useful to make <youreditor> $EDITOR, or to use
  592.   different arguments depending on your EDITOR environment variable.
  593.   --Ray Nickson
  594.  
  595.  
  596. Subject: How do I debug my .maildelivery file?
  597. From: Using MH-28
  598.  
  599.   Put a message into a file and call slocal directly on it.
  600.  
  601.     slocal -user $USER [-verbose] [-debug] < test-msg
  602.  
  603.   Use the verbose or debug flags as necessary.
  604.  
  605.   See also MH book section 11.11.
  606.  
  607.  
  608. Subject: How can I digestify the messages in a folder for mail to another user?
  609. From: Using MH-29
  610.  
  611.   How about:
  612.  
  613.     forw [-digest tmp] [-form forwcomps] [-filter mhl.digest]
  614.          messages +folder
  615.  
  616.   These messages can be un-digestified :-) by the MH burst(1) program.
  617.   --Jerry Peek <jerry@ora.com> and Bill Wohler
  618.  
  619.   See also MH book sections 6.8, 7.9.
  620.  
  621.  
  622. Subject: Can I run my message through a program (ie. ispell) before sending?
  623. From: Using MH-30
  624.  
  625.   It's pretty simple.  If your speller is called myspell, use:
  626.  
  627.     What now? edit myspell
  628.  
  629.   MH will actually execute:
  630.  
  631.     myspell /your-mail-draft-directory/draftfile
  632.  
  633.   and give the entire draft message to your speller.  The header will
  634.   probably be "misspelled," of course, though you might be able to
  635.   tell the speller to ignore it--or you could hack up a little shell
  636.   script to run the speller on just the message body, then tack the
  637.   corrected body back onto the header before sending.
  638.  
  639.   You can automate this some more.  For example, if you want your
  640.   speller to run after your first edit with "prompter" and also after
  641.   you leave the "vi" editor, add these lines to your MH profile:
  642.  
  643.       prompter-next: myspell
  644.       vi-next: myspell
  645.  
  646.   Then, at the "What now?" prompt:
  647.  
  648.       What now? e
  649.  
  650.   your speller will run.  For more info, see the mh-profile(5) man
  651.   page or section 6.2.1 of the MH book. --Jerry Peek <jerry@ora.com>
  652.  
  653.  
  654. Subject: Can I append MH messages to a GNU Emacs rmail BABYL-format file?
  655. From: Using MH-31
  656.  
  657.   To convert your MH folders to BABYL folders, first run the following script
  658.   on your Mail directory.
  659.  
  660.   #!/bin/sh
  661.  
  662.   for f in Mail/*; do
  663.     if [ -d $f ]; then
  664.         touch msgbox
  665.         folder=`basename $f`
  666.         echo -n packing $folder ...
  667.         packf +$folder
  668.         echo done
  669.         mv msgbox Mail-rmail/$folder
  670.     fi
  671.   done
  672.  
  673.   This assumes you don't have nested folders.  Your rmail folders will be
  674.   left in $HOME/Mail-rmail in MMDF format which rmail can read.  Then run
  675.   rmail-input for each folder, which converts each folder into BABYL format.
  676.  
  677.   Be sure not to append any messages before they are converted from MMDF
  678.   to BABYL, since there may be really strange results.
  679.  
  680.  
  681. Subject: Is there documentation for mh-e?
  682. From: Using MH-32
  683.  
  684.   Yes, sort of.  Run "C-h m" (describe-mode) in both scan and
  685.   letter modes to see which commands and variables are available.
  686.   Browsing the code is also helpful.
  687.  
  688.  
  689. Subject: ! How can I change my return address?
  690. From: Using MH-33
  691.  
  692.   If you find that your mailer creates a From header that others have
  693.   trouble replying to, you can add a Reply-To header to override the
  694.   From header in replies.
  695.  
  696.   Copy the components and replcomps files which are normally found in
  697.   /usr/local/lib/mh into your Mail directory and add a line like the
  698.   following after the Subject header replacing my address with your
  699.   address:
  700.  
  701.     Reply-To: wohler@sap-ag.de
  702.  
  703.   [12.92]
  704.  
  705. Subject: + How can I change my From header?
  706. From: Using MH-34
  707.  
  708.   If you're just interested in changing the hostname, add a line to
  709.   $LIB/mtstailor:
  710.  
  711.     localname: desired_host_name
  712.  
  713.   --Bill Wisner <wisner@netcom.com> [12.92]
  714.  
  715.   Just put a "From:" header in your "components", "replcomps" and
  716.   "forwcomps" files.  MH will add a "Sender:" header with what it thinks
  717.   is your real address, but (almost) no one cares about the "Sender:"
  718.   header anyway.  --Jerry Peek <jerry@ora.com>  [12.92]
  719.  
  720.  
  721. Subject: How can I get xmh to use Emacs as the editor?
  722. From: Xmh-40
  723.  
  724.   The modifications to xmh to support an external editor, annotations,
  725.   and an append command can be found in the these places.  --Bob
  726.   Ellison <ellison@sei.cmu.edu>
  727.  
  728.   export.lcs.mit.edu                R5fixes/xmh.editor/*
  729.   ftp.sei.cmu.edu                pub/xmh
  730.  
  731.   As of R5, xmh has a new action proc called XmhShellCommand.  A
  732.   string parameter will be executed as a shell command with the
  733.   currently selected messages as parameters (or the current message if
  734.   there are no selected messages).
  735.  
  736.   Using this new action, a couple of shell scripts, a window version
  737.   of emacs (e.g. xemacs) and some elisp code, xmh can use emacs as its
  738.   editor instead of the built in Athena text widget editor.  This
  739.   doesn't require any source code changes to xmh.  These are included
  740.   in the appendix "Switching xmh's editor".  --Andrew Wason
  741.   <aw@bae.bellcore.com>
  742.  
  743.  
  744. Subject: Does xmh support subfolders?
  745. From: Xmh-41
  746.  
  747.   Yes. Create one by invoking "Create Folder" as usual, and enter
  748.   something like: existing-folder/new-sub-folder. You can then access
  749.   the subfolder by popping up a menu over the "existing-folder" button
  750.   item.  --Steve Malowany <malowany@cenparmi.concordia.ca>
  751.  
  752.   But:
  753.  
  754.   The R5 version of xmh does *not* handle nested sub-folders.  If you
  755.   create a folder as 'grab/some/bandwidth', xmh displays this
  756.   foldername for the remainder of the session where it was created,
  757.   BUT if you later re-run xmh, the folder is no longer visible to xmh.
  758.   --John Cooper <jsc@saxon.Eng.Sun.COM>
  759.  
  760.   See also MH book section 15.6.2 (14.6.2).
  761.  
  762.  
  763. Subject: How do I precede included messages with ">" when replying in xmh?
  764. From: Xmh-42
  765.  
  766.   Include the following line in your ~/app-defaults/XMh file:
  767.  
  768.     Xmh*replyInsertFilter: "sed 's/^/> /'"
  769.  
  770.   --Len Makin <len@mel.dit.csiro.au>
  771.  
  772.   or,
  773.  
  774.     Xmh.ReplyInsertFilter: /usr/local/lib/mh/mhl -form repl.filter
  775.  
  776.   Using this means that you can chose to insert the original by use of
  777.   the "Insert" button in the Draft message pane.  See "How do I
  778.   include messages in repl with or without ">"?" to find examples of
  779.   repl.filter. --Andy Linton <andy.linton@comp.vuw.ac.nz>
  780.  
  781.   See also MH book sections 15.1.4 (14.1.4), 16.3.3 (15.2.3).
  782.  
  783.  
  784. Subject: Glossary
  785. From: Appendix
  786.  
  787.   MH    Mail Handler
  788.   POP3    Post Office Protocol, RFC 1225    
  789.   MMDF
  790.   MIME    Multipurpose Internet Mail Extensions
  791.  
  792.  
  793. Subject: Acknowledgements
  794. From: Appendix
  795.  
  796. I'd like to thank the following people for providing ideas on the
  797. layout of this article:
  798.  
  799. Joe Wells <jbw@bigbird.bu.edu>          Richard M. Stallman <rms@gnu.ai.mit.edu>
  800. David Elliott <dce@smsc.sony.com>     Tom Christiansen <tchrist@convex.com>
  801. Eugene N. Miya <eugene@nas.nasa.gov>
  802.  
  803.  
  804. We are also grateful to the individuals mentioned below and in the
  805. text of this document who have provided answers or other information
  806. to make this a better document.  I regret that it is possible that
  807. some names have been accidently omitted.  I would also like to thank
  808. all the readers of comp.mail.mh.
  809.  
  810. Kim F. Storm <storm@texas.dk>          Edward Vielmetti <emv@ox.com>
  811.  
  812.  
  813. Subject: Warranty
  814. From: Appendix
  815.  
  816. [The following statement epitomizes the ridiculous state of affairs in
  817. our country (I'm an American) and can be ignored outside the US...]
  818.  
  819. No Warranty: Because this article is provided free of charge as a
  820. service to comp.mail.mh readers, we provide absolutely no warranty, to
  821. the extent permitted by applicable state law.  This article is
  822. provided "as is" without warranty of any kind, either expressed or
  823. implied, including, but not limited to, the implied warranties of
  824. merchantability and fitness for a particular purpose.  Should the
  825. information prove defective, you assume the cost of all necessary
  826. servicing, repair or correction.
  827.  
  828.  
  829. Subject: Switching xmh's editor
  830. From: Appendix
  831.  
  832. #! /bin/sh
  833. # This is a shell archive.  Remove anything before this line, then unpack
  834. # it by saving it into a file and typing "sh file".  To overwrite existing
  835. # files, type "sh file -c".  You can also feed this as standard input via
  836. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  837. # will see the following message at the end:
  838. #        "End of shell archive."
  839. # Contents:  README Xmh.ad xmh-command.el xmhcommand xmhemacs
  840. # Wrapped by aw@jello on Fri Nov 15 17:10:34 1991
  841. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  842. if test -f 'README' -a "${1}" != "-c" ; then
  843.   echo shar: Will not clobber existing file \"'README'\"
  844. else
  845. echo shar: Extracting \"'README'\" \(1269 characters\)
  846. sed "s/^X//" >'README' <<'END_OF_FILE'
  847. XThis is a short description of what to do with each of the enclosed files.
  848. X
  849. XXmh.ad
  850. X  Merge this in with your xmh resources.  If you already have
  851. X  user defined buttons, then you may need to renumber the
  852. X  buttons in this resource file.
  853. X
  854. Xxmh-command.el
  855. X  Byte compile this file and put it in your GNU emacs load-path.
  856. X
  857. Xxmhcommand
  858. Xxmhemacs
  859. X  Put these somewhere in your path.
  860. X
  861. X
  862. XOnce you have installed these, restart the R5 xmh with the new
  863. Xresources.  When you press the repl, forw or comp buttons
  864. Xan xemacs window will come up with your draft message.
  865.